.upload-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* 阻止点击穿透 */
  pointer-events: auto;
}

.upload-dialog {
  background: white;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: dialogFadeIn 0.2s ease-out;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.upload-dialog-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 24px;
  color: white;
}

.upload-dialog-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.upload-dialog-body {
  padding: 24px;
}

/* 当前任务 */
.upload-task {
  margin-bottom: 30px;
}

.task-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.task-name::before {
  content: '📤';
  margin-right: 8px;
  font-size: 18px;
}

.task-progress-bar {
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.task-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.task-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.task-percentage {
  text-align: right;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 总体进度 */
.upload-overall {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.overall-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.overall-progress-bar {
  height: 8px;
  background: #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}

.overall-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #51cf66 0%, #37b24d 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 提示信息 */
.upload-tips {
  border-top: 1px solid #e9ecef;
  padding-top: 16px;
}

.upload-tips p {
  margin: 8px 0;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

.upload-tips p:first-child {
  color: #667eea;
  font-weight: 500;
}

/* 错误状态 */
.task-error {
  color: #fa5252 !important;
}

.task-error::before {
  content: '⚠️' !important;
}

/* 错误操作区域 */
.upload-error-actions {
  margin-top: 20px;
}

.error-tips {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.error-tips p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.error-tips p:first-child {
  color: #51cf66;
  font-weight: 500;
}

.error-tips p:last-child {
  color: #fa5252;
  font-weight: 500;
}

.error-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.error-buttons button {
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-buttons .retry-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.error-buttons .retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.error-buttons .retry-btn:active {
  transform: translateY(0);
}

.error-buttons .cancel-btn {
  background: #e9ecef;
  color: #666;
}

.error-buttons .cancel-btn:hover {
  background: #dee2e6;
}

/* 响应式 */
@media (max-width: 600px) {
  .upload-dialog {
    width: 95%;
  }
  
  .upload-dialog-header {
    padding: 16px 20px;
  }
  
  .upload-dialog-header h3 {
    font-size: 18px;
  }
  
  .upload-dialog-body {
    padding: 20px;
  }
  
  .task-name {
    font-size: 15px;
  }
}

